import werobot

myrobot = werobot.WeRoBot(enable_session=True,
                          token='WeixinToken',
                          APP_ID='wxc71e1d60d7c839ea',
                          APP_SECRET='a5a52a49b97f47c88d9d59683dcbc9d2')


@myrobot.handler
def hello(message):
    return 'Hello World!'


# 让服务器监听在 0.0.0.0:80
myrobot.config['HOST'] = '0.0.0.0'
myrobot.config['PORT'] = 5000
myrobot.run()
